package com.bytech.user.biz.service.friendChain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bytech.common.biz.entity.base.BaseResult;
import com.bytech.common.biz.entity.blogUser.BlogUserAgent;
import com.bytech.common.biz.entity.friendChain.FriendChain;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bytech.common.biz.entity.friendChain.FriendChainDto;
import com.bytech.common.biz.entity.friendChain.FriendChainQuery;

/**
 * @Author Zhao
 * @Create 2021-10-08
 */
public interface FriendChainService extends IService<FriendChain> {

    /**
     * 申请友链时若用户未注册 则会以友链数据生成用户
     */
    BaseResult<String> applyFriendChain(FriendChain chain, HttpServletRequest request, HttpServletResponse response, BlogUserAgent userAgent);

    Page<FriendChainDto> pageChainByQuery(FriendChainQuery<FriendChain> query);
}
